
<%@ page import="apbms.Socio" %>
<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
  <g:set var="entityName" value="${message(code: 'socio.label', default: 'Socio')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <div class="nav">
    <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
    <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
    <span class="menuButton"><g:link class="pesquisa" action="pesquisa"><g:message code="default.find.label" args="[entityName]" /></g:link></span>
  </div>
  <div class="body">
    <h1><g:message code="default.show.label" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
      <table>
        <tbody>

          <tr class="prop">
            <td valign="top" class="name"><g:message code="socio.id.label" default="Id" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "id")}</tr>

        <tr class="prop">
          <td valign="top" class="name" >
            <h2>Dados Pessoais</h2>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.foto3x4.label" default="Foto3x4" /></td>

          <td valign="top" class="value">
          <img src="${resource(dir:'images/fotos/', file: socioInstance.id.toString())}"  alt="Sem Foto"
               width="90" height="120" contextPath="/"
               /></td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.nome.label" default="Nome" /></td>

          <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "nome")}</td>
        </tr>
        
        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.cpf.label" default="Cpf" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "cpf")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.rg.label" default="Rg" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "rg")}</td>

        </tr>
        
        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.natCidade.label" default="Nat Cidade" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "natCidade")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.netEstado.label" default="Net Estado" /></td>

        <td valign="top" class="value">${socioInstance?.netEstado?.encodeAsHTML()}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.nomeMae.label" default="Nome Mae" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "nomeMae")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.nomePai.label" default="Nome Pai" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "nomePai")}</td>

        </tr>
        
        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.estadoCivil.label" default="Estado Civil" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "estadoCivil")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.sexo.label" default="Sexo" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "sexo")}</td>

        </tr>
        
        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.fatorRh.label" default="Fator Rh" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "fatorRh")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.dataDeNascimento.label" default="Data De Nascimento" /></td>

        <td valign="top" class="value"><g:formatDate date="${socioInstance?.dataDeNascimento}" /></td>

        </tr>
        
        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.dataAdmissaoApbms.label" default="Data Admissao Apbms" /></td>

        <td valign="top" class="value"><g:formatDate date="${socioInstance?.dataAdmissaoApbms}" /></td>

        </tr>
        
        <tr class="prop">
            <td valign="top" class="name">
              <br/>
              <h2>Dados de Contato</h2>
            </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.email.label" default="Email" /></td>

          <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "email")}</td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.celular.label" default="Celular" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "celular")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.telefone.label" default="Telefone" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "telefone")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.endereco.label" default="Endereco" /></td>

          <td valign="top" class="value">${socioInstance?.endereco?.encodeAsHTML()}</td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name">
                <br/>
                <h2>Dados Funcionais</h2>
            </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.nomeDeGuerra.label" default="Nome De Guerra" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "nomeDeGuerra")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.numeroGuerra.label" default="Numero Guerra" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "numeroGuerra")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.lotacao.label" default="Lotacao" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "lotacao")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.telLotacao.label" default="Tel Lotacao" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "telLotacao")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.dataAdmissaoPm.label" default="Data Admissao Pm" /></td>

        <td valign="top" class="value"><g:formatDate date="${socioInstance?.dataAdmissaoPm}" /></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.matricula.label" default="Matricula" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "matricula")}</td>

        </tr>
            
        <tr class="prop">
            <td valign="top" class="name">
                <br/>
                <h2>Dados Bancarios</h2>
            </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.banco.label" default="Banco" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "banco")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.contaCorrente.label" default="Conta Corrente" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "contaCorrente")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.agencia.label" default="Agencia" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "agencia")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.cidadeBanco.label" default="Cidade Banco" /></td>

        <td valign="top" class="value">${fieldValue(bean: socioInstance, field: "cidadeBanco")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.estadoBanco.label" default="Estado Banco" /></td>

        <td valign="top" class="value">${socioInstance?.estadoBanco?.encodeAsHTML()}</td>

        </tr>
        
        <tr class="prop">
            <td valign="top" class="name">
                <br/>
                <h2>Informações adicionais</h2>
            </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.usuario.label" default="Usuario" /></td>

        <td valign="top" class="value"><g:link controller="usuario" action="show" id="${socioInstance?.usuario?.id}">${socioInstance?.usuario?.encodeAsHTML()}</g:link></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.dependentes.label" default="Dependentes" /></td>

        <td valign="top" style="text-align: left;" class="value">
          <ul>
            <g:each in="${socioInstance.dependentes}" var="d">
              <li><g:link controller="dependente" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
            </g:each>
          </ul>
        </td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="socio.documentos.label" default="Documentos" /></td>

        <td valign="top" style="text-align: left;" class="value">
          <ul>
            <g:each in="${socioInstance.documentos}" var="d">
              <li><g:link controller="imagem" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
            </g:each>
          </ul>
        </td>

        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <g:form>
        <g:hiddenField name="id" value="${socioInstance?.id}" />
        <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
        <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
      </g:form>
    </div>
  </div>
</body>
</html>